package org.codetranslators.compiler.mips.translate;

import java.util.Vector;

public class AssemblySegments 
{
	
	public static final String tab = "\t";
	public static final String newLine = "\r\n";
	
	private Vector preTextDirectives;
	private Vector postTextDirectives;
	private Vector dataDirectives;
	
	public AssemblySegments()
	{
		preTextDirectives = new Vector();
		postTextDirectives = new Vector();
		dataDirectives = new Vector();
	}
	
	public Vector getPreTextDirectives()
	{
		preTextDirectives.addElement(tab + ".text" + newLine);
		return preTextDirectives;
	}
	
	public Vector getPostTextDirectives()
	{
		return postTextDirectives;
	}
	
	public Vector getDataDirectives()
	{
		dataDirectives.addElement(tab + ".data" + newLine);
		return dataDirectives;
	}
}
